package com.start.oss;

import com.start.common.enums.StartBaseStringEnum;

public enum OssAccessType implements StartBaseStringEnum {
    PUBLIC("公共", "public"),
    PRIVATE("私有", "private"),
    ;
    private final String label;
    private final String value;

    OssAccessType(String label, String value) {
        this.label = label;
        this.value = value;
    }

    /**
     * 获取泛型值
     *
     * @return
     */
    @Override
    public String getValue() {
        return value;
    }

    /**
     * 获取泛型名称
     *
     * @return
     */
    @Override
    public String getLabel() {
        return label;
    }
}
